package session_beans;

import java.util.Vector;

import entity_beans.City;
import entity_beans.Flight;
import entity_beans.Passenger;
import entity_beans.User;

public interface AirTransportSessionRemote {

	boolean registerUser(User user);

	boolean loginUser(User user);
	boolean logoutUser(User user);
	
	Vector<Flight> getFlights();
	Vector<City> getCities();
	
	boolean addNewCity(String cityID, String cityName);
	
	boolean addNewFlight(String flightID, String depTime, String arrTime, String srcCity, String destCity, String msc);
	
	Flight getFlightByID(String flightID);
	
	Vector<Passenger> getPassengersByFlight(String flightID);
	
	int reserve(String flightID, String jmbg, String name, String sruname);
	
	Vector<Flight> getFlightsByPassenger(Long jmbg);
	
	Passenger getPassengerByJMBG(String jmbg);
	
	boolean cancel(String flightID, String jmbg);
	
}
